<!DOCTYPE html>
<html class="ui-page-login">

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>忘记密码</title>
		<link href="css/mui.min.css" rel="stylesheet" />
		<link href="css/style.css" rel="stylesheet" />
		<link href="css/reg_style.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/common.css"/>
		<style type="text/css">
			header em{
				color: #4198FF;
			}
			.head1 em{
				float: left;
				width: 0.27rem;
				height: 0.36rem;
			}
			.head1 .img1 {
				float: left;
				width: 0.15rem;
				height: 0.15rem;
				margin-top: 0.1rem;
				margin-left: 0.07rem;
			}
			.mui-input-row label{
				padding-left: 0px;
				text-align: left;
				width: 12%;
			}
			.mui-input-row label~input, .mui-input-row label~select, .mui-input-row label~textarea{
				width: 88%;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav head1">
			<em class="mui-action-back"><img class="img1" src="img/fanhui.png" alt="" /></em>
		</header>
		<div class="mui-content">
			<div class="mui-content-padded content-box">
				<h3 class="title-ver">请输手机号</h3>
				<form id='login-form' class="mui-input-group">
					<div class="mui-input-row">
						<label><img class="input_logo_account" src="img/sjh.png" /></label>
						<input oninput="if(value.length>11)value=value.slice(0,11)" onkeyup="judge_phone()" maxlength="11" id='account' pattern="\d*" type="number" class="mui-input-clear mui-input" placeholder="请输入您的手机号">
					</div>
				</form>
				<div class="link-area forgetPassword red">
					<a id='forgetPassword'>&nbsp;</a>
				</div>
				<button id='btn_login' class="mui-btn mui-btn-block mui-btn-primary" onclick="user_find();" disabled="disabled" style="width: 110%;margin-left: -5%;">提交</button>

			</div>
			<div class="mui-content-padded oauth-area">

			</div>
		</div>

		<script src="js/mui.min.js"></script>
		<script src="js/mui.enterfocus.js"></script>
		<script src="js/app.js"></script>
		<script src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jsencrypt.js"></script>
		<script src="js/md5.js"></script>
		<script src="js/crypto-js.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script>
			
		
			var res_login = 0;
			//判断手机号长度，是否正确
			function judge_phone() {
				var account = mui('#account')[0].value;

				if(account.length == 11) {
					$("#btn_login").addClass("jianbian3_shengse");
					if(res_login == 0) {
						user_check_id(account);
					}
				} else {
					res_login = 0;
					document.getElementById("btn_login").disabled = true;
					btn_login_se('jianbian1_qianse',"#btn_login");			
				}

			}
			
			
			function user_find() {
				var sbx = {};
				sbx.id = mui("#account")[0].value;

//				obj.client = var_client;
//				obj.version = var_version;
//				var encrypt = new JSEncrypt();
//				encrypt.setPublicKey(publicKey);
//				obj.params = encrypt.encrypt(JSON.stringify(sbx));

				login_encrypt_md5(sbx);
				console.log(sbx);
				ajax_submit_before(url_host + 'user/find', 'user_find');
			}
			
		</script>
	</body>

</html>